import request from '@/utils/request'
//所有跟role相关的异步请求


//获取角色列表
export  function roleSearch(data) {
    return request({
      url: 'sys/role/search',
      method: 'post',
      data   //只能是data
    })
  }


//保存角色
export  function saveRole(data) {
    return request({
      url: 'sys/role/save',
      method: 'post',
      data   //只能是data
    })
  } 